package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SQuartermaster extends Object implements IMessageBase
    {
        public var mySword:int;
        public var myArmor:int;
        public var campSword:int;
        public var campArmor:int;
        public const _type:int = 93;
        public static var _regist:SQuartermaster = new SQuartermaster(true);

        public function SQuartermaster(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SQuartermaster();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.mySword);
            param1.writeInt(this.myArmor);
            param1.writeInt(this.campSword);
            param1.writeInt(this.campArmor);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.mySword = param1.readInt();
            this.myArmor = param1.readInt();
            this.campSword = param1.readInt();
            this.campArmor = param1.readInt();
            
        }

    }
}
